package com.hbgc.pojo;

import java.io.Serializable;

/**
 * 爬虫策略
 * @TableName tb_spider
 */
public class TbSpider implements Serializable {
    /**
     * 爬虫主键
     */
    private Integer spiderid;

    /**
     * 爬虫名称
     */
    private String spidername;

    /**
     * 爬虫站的主页
     */
    private String spiderurl;

    /**
     * 爬虫的路径
     */
    private String spiderpath;

    private static final long serialVersionUID = 1L;

    /**
     * 爬虫主键
     */
    public Integer getSpiderid() {
        return spiderid;
    }

    /**
     * 爬虫主键
     */
    public void setSpiderid(Integer spiderid) {
        this.spiderid = spiderid;
    }

    /**
     * 爬虫名称
     */
    public String getSpidername() {
        return spidername;
    }

    /**
     * 爬虫名称
     */
    public void setSpidername(String spidername) {
        this.spidername = spidername;
    }

    /**
     * 爬虫站的主页
     */
    public String getSpiderurl() {
        return spiderurl;
    }

    /**
     * 爬虫站的主页
     */
    public void setSpiderurl(String spiderurl) {
        this.spiderurl = spiderurl;
    }

    /**
     * 爬虫的路径
     */
    public String getSpiderpath() {
        return spiderpath;
    }

    /**
     * 爬虫的路径
     */
    public void setSpiderpath(String spiderpath) {
        this.spiderpath = spiderpath;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        TbSpider other = (TbSpider) that;
        return (this.getSpiderid() == null ? other.getSpiderid() == null : this.getSpiderid().equals(other.getSpiderid()))
            && (this.getSpidername() == null ? other.getSpidername() == null : this.getSpidername().equals(other.getSpidername()))
            && (this.getSpiderurl() == null ? other.getSpiderurl() == null : this.getSpiderurl().equals(other.getSpiderurl()))
            && (this.getSpiderpath() == null ? other.getSpiderpath() == null : this.getSpiderpath().equals(other.getSpiderpath()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getSpiderid() == null) ? 0 : getSpiderid().hashCode());
        result = prime * result + ((getSpidername() == null) ? 0 : getSpidername().hashCode());
        result = prime * result + ((getSpiderurl() == null) ? 0 : getSpiderurl().hashCode());
        result = prime * result + ((getSpiderpath() == null) ? 0 : getSpiderpath().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", spiderid=").append(spiderid);
        sb.append(", spidername=").append(spidername);
        sb.append(", spiderurl=").append(spiderurl);
        sb.append(", spiderpath=").append(spiderpath);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}